import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/style/common.css'
import "./assets/style/reset.css"//样式重置文件
import './assets/style/border.css' //1像素边框的解决方案
import fastClick from 'fastclick' //300毫秒点击延迟问题的解决方案（尤其是移动端）优化用户体验
import axios from 'axios'
import '@/plugin/vant.js'

import { Notify } from 'vant'



axios.defaults.baseURL = "https://fanhc.xyz/api/public/v1"
Vue.prototype.$http = axios
Vue.config.productionTip = false
fastClick.attach(document.body);//fastclick自带的一个方法

Vue.prototype.$Notify = Notify
// 设置axios相应拦截器
axios.interceptors.response.use(function (res) {
  let data = res.data;
  return data
}, function (err) {
  console.log(err)
})


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
